# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Sergey Lukin <sergej.lukin@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libwnck3
pkgver=3.36.0
pkgrel=0
pkgdesc="Window Navigator Construction Kit"
url="https://gitlab.gnome.org/GNOME/libwnck"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-lang"
replaces="libwnck"
makedepends="glib-dev gtk+3.0-dev libx11-dev pango-dev cairo-dev meson
	startup-notification-dev libxres-dev gobject-introspection-dev"
options="!check" # no tests
source="https://download.gnome.org/sources/libwnck/${pkgver%.*}/libwnck-$pkgver.tar.xz"

builddir="$srcdir"/libwnck-$pkgver

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dgtk_doc=false \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}
sha512sums="b7bf5d935327f61634a898594cf20a270e1b403c8df6c74e6ac20e22eea2845ac8c3007b31994728b74953e40c1015373efe10ed64243cf5e85fd210654aecb3  libwnck-3.36.0.tar.xz"
